-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AIR] Checkpoint
improvements
#30948
[AIR] Checkpoint
improvements
#30948
Conversation
Signed-off-by: Antoni Baum <[email protected]>
Signed-off-by: Antoni Baum <[email protected]>
Signed-off-by: Antoni Baum <[email protected]>
Signed-off-by: Antoni Baum <[email protected]>
Signed-off-by: Antoni Baum <[email protected]>
Signed-off-by: Antoni Baum <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, minor change please
python/ray/air/checkpoint.py
Outdated
local_path=other._local_path, | ||
data_dict=other._data_dict, | ||
uri=other._uri, | ||
obj_ref=other._obj_ref, | ||
) | ||
other._copy_metadata_attrs_to(new_checkpoint) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's reverse this (copy metadata from)
Co-authored-by: Balaji Veeramani <[email protected]> Signed-off-by: Antoni Baum <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Boston dataset (used in tests) is/will be removed from sklearn. Signed-off-by: Antoni Baum <[email protected]> Co-authored-by: Balaji Veeramani <[email protected]> Signed-off-by: Weichen Xu <[email protected]>
Boston dataset (used in tests) is/will be removed from sklearn. Signed-off-by: Antoni Baum <[email protected]> Co-authored-by: Balaji Veeramani <[email protected]> Signed-off-by: tmynn <[email protected]>
Why are these changes needed?
This PR makes the following improvements to
Checkpoint
:_local_path
and that the comparison into_directory
between_local_path
and user passedpath
compares the paths and not strings.to_dict()
twice into_bytes()
from_checkpoint
, the metadata will be copied from the source checkpoint to the target checkpoint.Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.